#include "app_mqtt.h"
#include "log/log.h"
#include "unistd.h"
int mqtt_handle(char *data)
{
    log_debug("recv data:%s",data);
    return 0;
}
int main()
{
    app_mqtt_init();
    app_mqtt_registerRecvCallback(mqtt_handle);
    app_mqtt_publish("{\"name\":\"tom\", \"age\":18}");
    sleep(50);
    app_mqtt_close();
    return 0;
}